/*
 * Led.cpp
 *
 *  Created on: Dec 19, 2009
 *      Author: evaleto
 */

#include "Led.h"
#include "WProgram.h"

//void Led::flash(uint8_t pin) {
//	flash(pin,1,10);
//}

void Led::flash(uint8_t pin, uint8_t times, uint16_t wait) {

    for (uint8_t i = 0; i < times; i++) {
      if(i)delay(wait);
      digitalWrite(pin, HIGH);
      delay(wait);
      digitalWrite(pin, LOW);
    }
}

void Led::flash(uint8_t pin, uint8_t r, uint8_t g, uint8_t b){

}

Led::Led() {
}

Led::~Led() {
}
